package org.example.service;

import org.example.Order;
import org.example.ResultMap;
import org.example.mapper.OrderMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OrderServiceImpl implements OrderService {
    @Autowired
    OrderMapper orderMapper;

    @Override
    public ResultMap addOrder(Order order) {
        int insert = orderMapper.insert(order);
        ResultMap resultMap = new ResultMap();
        resultMap.setCode(1);
        resultMap.setMsg("生成一个账单");
        return resultMap;
    }
}
